package com.n5x.model.shopping;

import com.n5x.model.AbstractModel;
import com.n5x.model.goods.GoodsInfo;

import java.util.Date;

public class ShoppingCart extends AbstractModel {

    public ShoppingCart() {
    }

    public ShoppingCart(String fkGoods) {
        this.fkGoods = fkGoods;
    }

    private String fkGoods;

    private String fkUser;

    private Integer qty = 0;

    @Deprecated
    private Date validTime;

    private GoodsInfo goodsInfo;

    public String getFkGoods() {
        return fkGoods;
    }

    public void setFkGoods(String fkGoods) {
        this.fkGoods = fkGoods;
    }

    public String getFkUser() {
        return fkUser;
    }

    public void setFkUser(String fkUser) {
        this.fkUser = fkUser;
    }

    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }

    public Date getValidTime() {
        return validTime;
    }

    public void setValidTime(Date validTime) {
        this.validTime = validTime;
    }

    public GoodsInfo getGoodsInfo() {
        return goodsInfo;
    }

    public void setGoodsInfo(GoodsInfo goodsInfo) {
        this.goodsInfo = goodsInfo;
    }
}